/**
 * 抽奖系统配置文件
 * 包含参与抽奖的成员名单和奖品配置
 */

// 参与抽奖的成员列表 - 包含历史名人
const memberList = [
  '01',
  '02',
  '03',
  '04',
  '05',
  '06',
  '07',
  '08',
  '09',
  '10',
  '11',
  '12',
  '13',
  '14',
  '15',
  '16',
  '17',
  '18',
  '19',
  '20',
  '21',
  '22',
  '23',
  '24',
  '25',
  '26',
  '27',
  '28',
  '29',
  '30',
  '31',
  '32',
  '33',
  '34',
  '35',
  '36',
  '37',
  '38',
  '39',
  '40',
  '41',
  '42',
  '43',
  '44',
  '45',
  '46',
  '47',
  '48',
  '49',
  '50',
  '51',
  '52',
  '53',
  '54',
  '55',
  '56',
  '57',
  '58',
  '59',
  '60',
  '61',
  '62',
  '63',
  '64',
  '65',
  '66',
  '67',
  '68',
  '69',
  '70',
  '71',
  '72',
  '73',
  '74',
  '75',
  '76',
  '77',
  '78',
  '79',
  '80',
  '81',
  '82',
  '83',
  '84',
  '85',
  '86',
  '87',
  '88',
  '89',
  '90',
  '91',
  '92',
  '93',
  '94',
  '95',
  '96',
  '97',
  '98',
  '99',
  '100',
  '101',
  '102',
  '103',
  '104',
  '105',
  '106',
  '107',
  '108',
  '109',
  '110',
  '111',
  '112',
  '113',
  '114',
  '115',
  '116',
  '117',
  '118',
  '119',
  '120',
  '121',
  '122',
  '123',
  '124',
  '125',
  '126',
  '127',
  '128',
  '129',
  '130',
  '131',
  '132',
  '133',
  '134',
  '135',
  '136',
  '137',
  '138',
  '139',
  '140',
  '141',
  '142',
  '143',
  '144',
  '145',
  '146',
  '147',
  '148',
  '149',
  '150',
  '151',
  '152',
  '153',
  '154',
  '155',
  '156',
  '157',
  '158',
  '159',
  '160',
  '161',
  '162',
  '163',
  '164',
  '165',
  '166',
  '167',
  '168',
  '169',
  '170',
  '171',
  '172',
  '173',
  '174',
  '175',
  '176',
  '177',
  '178',
  '179',
  '180',
  '181',
  '182',
  '183',
  '184',
  '185',
  '186',
  '187',
  '188',
  '189',
  '190',
  '191',
  '192',
  '193',
  '194',
  '195',
  '196',
  '197',
  '198',
  '199',
  '200',
  '201',
  '202',
  '203',
  '204',
  '205',
  '206',
  '207',
  '208',
  '209',
  '210',
  '211',
  '212',
  '213',
  '214',
  '215',
  '216',
  '217',
  '218',
  '219',
  '220',
  '221',
  '222',
  '223',
  '224',
  '225',
  '226',
  '227',
  '228',
]

/**
 * 将成员数组转换为对象数组
 * @param {string} name - 成员姓名
 * @param {number} index - 成员索引
 * @returns {Array<{name: string, index: number}>} - 返回包含成员信息的对象数组
 */
export const member = memberList.map((name, index) => ({
  name,
  index,
}))

/**
 * 奖品配置列表
 * 每个奖品对象包含以下属性:
 * @property {string} name - 奖品名称
 * @property {string} prize - 奖品等级(一等奖/二等奖/三等奖)
 * @property {number} level - 奖品级别(数字越大级别越高)
 * @property {string} url - 奖品图片路径
 * @property {Array} person - // 存储当前中奖人员
 * @property {number} count - 奖品数量
 */
export const prizes = [
  {
    name: '美的破壁机',
    prize: '三等奖',
    level: 16,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/16.jpg',
    person: [],
    count: 2,
  },
  {
    name: 'JBL蓝牙耳机',
    prize: '三等奖',
    level: 15,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/15.jpg',
    person: [],
    count: 2,
  },
  {
    name: 'OIDIRE 养生壶',
    prize: '三等奖',
    level: 14,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/14.jpg',
    person: [],
    count: 2,
  },
  {
    name: 'Uwant除螨仪',
    prize: '三等奖',
    level: 13,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/13.jpg',
    person: [],
    count: 2,
  },
  {
    name: '华为运动手环',
    prize: '三等奖',
    level: 12,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/12.jpg',
    person: [],
    count: 2,
  },
  {
    name: '九阳空气炸锅',
    prize: '三等奖',
    level: 11,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/11.jpg',
    person: [],
    count: 5,
  },
  {
    name: '苏泊尔电饭煲',
    prize: '三等奖',
    level: 10,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/10.jpg',
    person: [],
    count: 5,
  },
  {
    name: '三只松鼠坚果大礼盒',
    prize: '三等奖',
    level: 9,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/9.jpg',
    person: [],
    count: 5,
  },
  {
    name: 'SK-II神仙水套装',
    prize: '二等奖',
    level: 8,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/8.jpg',
    person: [],
    count: 1,
  },
  {
    name: '华为平板电脑',
    prize: '二等奖',
    level: 7,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/7.jpg',
    person: [],
    count: 1,
  },
  {
    name: '追觅扫地机',
    prize: '二等奖',
    level: 6,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/6.jpg',
    person: [],
    count: 1,
  },
  {
    name: '米家空气净化器',
    prize: '二等奖',
    level: 5,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/5.jpg',
    person: [],
    count: 1,
  },
  {
    name: 'AEOMJK咖啡机',
    prize: '二等奖',
    level: 4,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/4.jpg',
    person: [],
    count: 1,
  },
  {
    name: '周大福金项链',
    prize: '一等奖',
    level: 3,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/3.jpg',
    person: [],
    count: 1,
  },
  {
    name: '索尼PS5 游戏机',
    prize: '一等奖',
    level: 2,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/2.jpg',
    person: [],
    count: 1,
  },
  {
    name: '华为折叠手机',
    prize: '特等奖',
    level: 1,
    url: 'https://env-00jxhoy8j9il.normal.cloudstatic.cn/weituobeisite/1.jpg',
    person: [],
    count: 1,
  },
]
